package com.ss.ttm.player;

import android.content.Context;
import android.util.Log;
import android.view.Surface;

import com.ss.ttm.a.b;

import inline.ScreenshotListener;

public abstract class f {
    public f() {

    }

    public static f a(Context context, TTPlayerClient ttPlayerClient) {
        Class v1 = f.class;
        synchronized (v1){
            p v0 = null;
            if(b.b() == 1) {
                if(m.a(2)) {
                    v0 = p.a(ttPlayerClient, context);
                    if(v0 != null && (m.d())) {
                        Log.i("ttplayer", "---------->ttplayer ipc on<------------");
                    }
                }

                if(v0 != null) {
                }else {
                    r v0_2 = r.a(ttPlayerClient, context);
                    if (v0_2 == null) {
                    } else if (!m.d()) {
                    } else {
                        Log.i("ttplayer", "---------->ttplayer on<------------");
                    }
                }
            }

            if(v0 == null) {
                Log.i("ttplayer", m.a(16, "not find start service info."));
                if(!m.a(7) && m.a(10, 0) < 3) {
                    m.a(7, true);
                }
            }
            return ((f)v0);
        }
    }

    protected abstract int getIntOption(int arg1, int arg2);

    protected abstract void mouseEvent(int arg1, int arg2, int arg3);

    protected abstract void setVideoSurface(Surface arg1);

    protected abstract void prevClose();

    protected abstract void setCacheFile(String arg1, int arg2);

    protected abstract int setStringOption(int arg1, String arg2);

    protected abstract void setDataSource(String arg1);

    protected abstract int setLongOption(int arg1, long arg2);

    protected abstract void setLooping(int arg1);

    protected abstract void setNotifyerState(long arg1);

    protected abstract void setVolume(float arg1, float arg2);

    protected abstract void setOnScreenshotListener(ScreenshotListener arg1);

    protected abstract void close();

    protected abstract long getLongOption(int arg1, long arg2);

    protected abstract void rotateCamera(float arg1, float arg2);

    protected abstract void seekTo(int arg1);

    protected abstract int setIntOption(int arg1, int arg2);

    protected abstract String getStringOption(int arg1);

    protected abstract void release();

    protected abstract void start();

    protected abstract void pause();

    protected abstract void reset();

    protected abstract void stop();

    protected abstract void prepare();

    protected abstract Context i();

    protected abstract int j();

    protected abstract boolean k();

    protected abstract int l();

    protected abstract void takeScreenshot();

    protected void n() {
    }
}

